Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 8b8a503583737817cafd4f2659dc853e74bd5e94


Parents : 99068ef
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-07-28T15:50:23+02:00

Added option to hide blocked connection map entries from the map

Changes

2 files changed, 39 insertions(+), 2 deletions(-)

M sbapp/ui/map.py +38 -2

Diff

diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index ad7a53c5..f64c9880 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -819,6 +819,7 @@ class SidebandCore():
if not "map_cluster" in self.config: self.config["map_cluster"] = True
if not "map_interfaces" in self.config: self.config["map_interfaces"] = True
if not "map_connection_maps" in self.config: self.config["map_connection_maps"] = False
+ if not "map_hide_blocked" in self.config: self.config["map_hide_blocked"] = False
if not "map_relaxed_loading" in self.config: self.config["map_relaxed_loading"] = False
if not "map_layer" in self.config: self.config["map_layer"] = "osm"
if not "map_use_osm" in self.config: self.config["map_use_osm"] = True

diff --git a/sbapp/ui/map.py b/sbapp/ui/map.py
index effcd736..42271380 100644
--- a/sbapp/ui/map.py
+++ b/sbapp/ui/map.py
@@ -414,6 +414,7 @@ class Map():
self.map_settings_screen.ids.map_cluster.active = self.app.sideband.config["map_cluster"]
self.map_settings_screen.ids.map_interfaces.active = self.app.sideband.config["map_interfaces"]
self.map_settings_screen.ids.map_connection_maps.active = self.app.sideband.config["map_connection_maps"]
+ self.map_settings_screen.ids.map_hide_blocked.active = self.app.sideband.config["map_hide_blocked"]
self.map_settings_screen.ids.map_relaxed_loading.active = self.app.sideband.config["map_relaxed_loading"]
def settings_init(self):
@@ -437,6 +438,7 @@ class Map():
self.app.sideband.config["map_cluster"] = self.map_settings_screen.ids.map_cluster.active
self.app.sideband.config["map_interfaces"] = self.map_settings_screen.ids.map_interfaces.active
self.app.sideband.config["map_connection_maps"] = self.map_settings_screen.ids.map_connection_maps.active
+ self.app.sideband.config["map_hide_blocked"] = self.map_settings_screen.ids.map_hide_blocked.active
self.app.sideband.config["map_relaxed_loading"] = self.map_settings_screen.ids.map_relaxed_loading.active
self.app.sideband.config["map_mt_api_key"] = str(self.map_settings_screen.ids.map_mt_api_key.text).strip()
self.app.sideband.config["map_st_api_key"] = str(self.map_settings_screen.ids.map_st_api_key.text).strip()
@@ -488,6 +490,7 @@ class Map():
self.map_settings_screen.ids.map_cluster.bind(active=map_settings_save)
self.map_settings_screen.ids.map_interfaces.bind(active=map_settings_save)
self.map_settings_screen.ids.map_connection_maps.bind(active=map_settings_save)
+ self.map_settings_screen.ids.map_hide_blocked.bind(active=map_settings_save)
self.map_settings_screen.ids.map_relaxed_loading.bind(active=relaxed_loading_toggle)
self.map_settings_screen.ids.map_mt_api_key.text = self.app.sideband.config["map_mt_api_key"]
@@ -814,6 +817,7 @@ class Map():
for mn in m["maps"]:
cm = m["maps"][mn]
if not "points" in cm: continue
+ RNS.log(f"Adding map {mn} with {len(cm['points'])} points", RNS.LOG_DEBUG)
for p_hash in cm["points"]:
p = cm["points"][p_hash]
if "latitude" in p and "longitude" in p and "altitude" in p:
@@ -821,6 +825,7 @@ class Map():
if not p_hash in self.clustered_markers:
is_blocked = False
if "type_label" in p and p["type_label"] == "blocked":
+ if self.app.sideband.config["map_hide_blocked"] == True: continue
if_appearance = self.app.sideband.iface_appearance("blocked")
is_blocked = True
elif "signal" in p and "q" in p["signal"] and p["signal"]["q"] != None:
@@ -1125,6 +1130,37 @@ MDScreen:
pos_hint: {"center_y": 0.3}
active: False
+ MDBoxLayout:
+ orientation: "horizontal"
+ padding: [0,0,dp(24),0]
+ size_hint_y: None
+ height: dp(48)
+
+ MDLabel:
+ text: "Relaxed Loading"
+ font_style: "H6"
+
+ MDSwitch:
+ id: map_relaxed_loading
+ pos_hint: {"center_y": 0.3}
+ active: False
+
+ MDLabel:
+ text: "•"
+ font_style: "H6"
+ text_size: self.size
+ halign: "center"
+ size_hint_y: None
+ height: self.texture_size[1]
+ padding: [0, dp(2), 0, dp(22)]
+
+ MDLabel:
+ text: "Connection Maps"
+ font_style: "H5"
+ size_hint_y: None
+ height: self.texture_size[1]
+ padding: [0, 0, 0, dp(12)]
+
MDBoxLayout:
orientation: "horizontal"
padding: [0,0,dp(24),0]
@@ -1147,11 +1183,11 @@ MDScreen:
height: dp(48)
MDLabel:
- text: "Relaxed Loading"
+ text: "Hide Blocked Connections"
font_style: "H6"
MDSwitch:
- id: map_relaxed_loading
+ id: map_hide_blocked
pos_hint: {"center_y": 0.3}
active: False


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────